<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('/industry',IndustryController::class);
    $router->resource('/project',ProjectController::class);
    $router->resource('/source',SourceController::class);
    $router->resource('/user',UserController::class);
    $router->resource('/role',RoleController::class);
    $router->resource('/permission',PermissionController::class);

    $router->resource('/coustomer',CoustomerController::class);
    $router->resource('/SeaCoustomer',SeaCoustomerController::class);
    $router->post('/coustomer/transfer','CoustomerController@transfer');
    $router->post('/coustomer/getUser','CoustomerController@getUser');
    $router->resource('/follow',FollowController::class);
    $router->resource('/demand',CustomerDemandController::class);
    $router->resource('/area',CustomerAreaController::class);
    //客户登记
    $router->resource('/customer/level',CustomerLevelController::class);
    //客户标签
    $router->resource('/customer/sign',CustomerSignController::class);
    //消费
    $router->resource('/xiaofei',XiaofeiController::class);

    $router->resource('/tuiguang_source',TuiguangSourceController::class);
    //消费报表
    $router->resource('/project_xiaofei',BiaobiaoController::class);
    $router->resource('/users',UserController::class);
    //发送通知
    $router->resource('/SendNotice',SendNoticeUserController::class);
    $router->resource('jinris', JinriController::class);

});
